package com.zhaowb.springcloud.common.vo;

import java.util.ArrayList;
import java.util.List;

/**
 * Created with IDEA
 * 树
 *
 * @author zhaowb
 * @date 2018/10/22 15:03
 */
public class TreeNode {
    protected int id;
    protected int parentId;
    List<TreeNode> ListChildren = new ArrayList<TreeNode>();

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getParentId() {
        return parentId;
    }

    public void setParentId(int parentId) {
        this.parentId = parentId;
    }

    public List<TreeNode> getListChildren() {
        return ListChildren;
    }

    public void setListChildren(List<TreeNode> listChildren) {
        ListChildren = listChildren;
    }

    public void add(TreeNode node) {
        ListChildren.add(node);
    }
}
